package com.bdk.middle.management.api.domain;

import lombok.Data;
import com.bdk.middle.common.domain.BaseDO;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

@Data
public class RoleDO extends BaseDO implements GrantedAuthority {

    /**
     * 角色代码
     */
    private String code;

    /**
     * 角色名
     */
    private String name;

    /**
     * 是否弃用
     */
    private Integer status;


    List<String> permissionIds;

    @Override
    public String getAuthority() {
        return code;
    }
}
